//
//  YBApiManager+Chat.h
//  ChangChat
//
//  Created by Cocoa on 2019/9/3.
//  Copyright © 2019 yibai. All rights reserved.
//

#import "YBApiManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface YBApiManager (Chat)

- (RACSignal *)sendMsgWithContent:(NSString *)content client_id:(NSString *)client_id group_id:(NSString *)group_id type:(NSString *)type s_image:(NSString *)s_image second:(NSInteger)second file_name:(NSString *)file_name file_size:(NSString *)file_size;
- (RACSignal *)sendReceivedMsgWithMsgId:(NSString *)msgId;
- (RACSignal *)sendReadedMsgWithGroupId:(NSString *)group_id;
- (RACSignal *)recallMsgWithMsgId:(NSInteger)group_logs_id;

- (RACSignal *)createGroupChatWithGroupUserIds:(NSString *)groupUids;
- (RACSignal *)groupInfoWithGroupId:(NSString *)group_id;
//  群聊列表
- (RACSignal *)getGroupChatList;
- (RACSignal *)getGroupAllUserWithGroupId:(NSString *)group_id;
- (RACSignal *)updateGroupWithGroupId:(NSString *)group_id nickName:(NSString *_Nullable)nickname no_disturb:(NSString *)no_disturb;
- (RACSignal *)updateGroupName:(NSString *)groupName groupAvatar:(NSString *)group_avatar group_id:(NSString *)group_id;
- (RACSignal *)deleteGroupUserWithUserIds:(NSString *)user_ids groupId:(NSString *)group_id;
- (RACSignal *)addGroupUserWithUserIds:(NSString *)user_ids groupId:(NSString *)group_id;
- (RACSignal *)dismissGroupWithGroupId:(NSString *)group_id;
- (RACSignal *)quitGroupWithgroup_id:(NSString *)group_id;
- (RACSignal *)groupDisableSendMsgWithGroupId:(NSString *)group_id;
- (RACSignal *)groupEnableSendMsgWithGroupId:(NSString *)group_id;
@end

NS_ASSUME_NONNULL_END
